package com.nt.oam.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nt.common.annotation.Excel;
import com.nt.common.core.domain.BaseEntity;

/**
 * 接入设备资产对象 ant_access_device_asset
 *
 * @author JZFeng
 * @date 2025-02-05
 */
@TableName(resultMap = "com.nt.oam.mapper.AntAccessDeviceAssetMapper.AntAccessDeviceAssetResult" )
public class AntAccessDeviceAsset extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 接入设备资产信息
     */
    @TableId(value = "access_device_id" , type = IdType.AUTO)
    private Long accessDeviceId;

    /**
     * 医院id
     */
    private Long hospitalId;

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 资产id
     */
    private Long assetId;

    /**
     * 医院名称
     */
    @Excel(name = "医院名称" )
    private String hospitalName;

    /**
     * 项目名称
     */
    @Excel(name = "项目名称" )
    private String projectName;

    /**
     * 资产名称
     */
    @Excel(name = "资产名称" )
    private String assetName;

    /**
     * 设备ip地址
     */
    @Excel(name = "设备ip地址" )
    private String deviceIpLocation;

    /**
     * 设备连接方式
     */
    @Excel(name = "设备连接方式" )
    private String deviceConnectionMode;

    /**
     * 文件上传方式
     */
    private String fileUploadMode;

    /**
     * 文件产生方式
     */
    private String fileGenerationMode;

    /**
     * 上传文件位置
     */
    private String uploadFileLocation;

    /**
     * 服务器文件位置
     */
    private String serverFileLocation;

    /**
     * 接入时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd" )
    private Date accessTime;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称" )
    private String deviceName;

    /**
     * 设备类型
     */
    @Excel(name = "设备类型" )
    private String deviceType;

    /**
     * 设备物理地址
     */
    private String devicePhysicalLocation;

    /**
     * 设备详情
     */
    private String deviceDetails;

    /**
     * 创建人
     */
    private String createPerson;

    /**
     * 更新人
     */
    private String updatePerson;

    /**
     * 是否删除
     */
    private Integer isDeleted;

    /**
     * 是否正在修改, 0-不在修改， 1-正在修改
     */
    private Integer isModify;


    public void setAccessDeviceId(Long accessDeviceId) {
        this.accessDeviceId = accessDeviceId;
    }

    public Long getAccessDeviceId() {
        return accessDeviceId;
    }

    public void setHospitalId(Long hospitalId) {
        this.hospitalId = hospitalId;
    }

    public Long getHospitalId() {
        return hospitalId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setAssetId(Long assetId) {
        this.assetId = assetId;
    }

    public Long getAssetId() {
        return assetId;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setAssetName(String assetName) {
        this.assetName = assetName;
    }

    public String getAssetName() {
        return assetName;
    }

    public void setDeviceIpLocation(String deviceIpLocation) {
        this.deviceIpLocation = deviceIpLocation;
    }

    public String getDeviceIpLocation() {
        return deviceIpLocation;
    }

    public void setDeviceConnectionMode(String deviceConnectionMode) {
        this.deviceConnectionMode = deviceConnectionMode;
    }

    public String getDeviceConnectionMode() {
        return deviceConnectionMode;
    }

    public void setFileUploadMode(String fileUploadMode) {
        this.fileUploadMode = fileUploadMode;
    }

    public String getFileUploadMode() {
        return fileUploadMode;
    }

    public void setFileGenerationMode(String fileGenerationMode) {
        this.fileGenerationMode = fileGenerationMode;
    }

    public String getFileGenerationMode() {
        return fileGenerationMode;
    }

    public void setUploadFileLocation(String uploadFileLocation) {
        this.uploadFileLocation = uploadFileLocation;
    }

    public String getUploadFileLocation() {
        return uploadFileLocation;
    }

    public void setServerFileLocation(String serverFileLocation) {
        this.serverFileLocation = serverFileLocation;
    }

    public String getServerFileLocation() {
        return serverFileLocation;
    }

    public void setAccessTime(Date accessTime) {
        this.accessTime = accessTime;
    }

    public Date getAccessTime() {
        return accessTime;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDevicePhysicalLocation(String devicePhysicalLocation) {
        this.devicePhysicalLocation = devicePhysicalLocation;
    }

    public String getDevicePhysicalLocation() {
        return devicePhysicalLocation;
    }

    public void setDeviceDetails(String deviceDetails) {
        this.deviceDetails = deviceDetails;
    }

    public String getDeviceDetails() {
        return deviceDetails;
    }

    public void setCreatePerson(String createPerson) {
        this.createPerson = createPerson;
    }

    public String getCreatePerson() {
        return createPerson;
    }

    public void setUpdatePerson(String updatePerson) {
        this.updatePerson = updatePerson;
    }

    public String getUpdatePerson() {
        return updatePerson;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }
    public void setIsModify(Integer isModify) {
        this.isModify = isModify;
    }

    public Integer getIsModify() {
        return isModify;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("accessDeviceId" , getAccessDeviceId())
                .append("hospitalId" , getHospitalId())
                .append("projectId" , getProjectId())
                .append("assetId" , getAssetId())
                .append("hospitalName" , getHospitalName())
                .append("projectName" , getProjectName())
                .append("assetName" , getAssetName())
                .append("deviceIpLocation" , getDeviceIpLocation())
                .append("deviceConnectionMode" , getDeviceConnectionMode())
                .append("fileUploadMode" , getFileUploadMode())
                .append("fileGenerationMode" , getFileGenerationMode())
                .append("uploadFileLocation" , getUploadFileLocation())
                .append("serverFileLocation" , getServerFileLocation())
                .append("accessTime" , getAccessTime())
                .append("deviceName" , getDeviceName())
                .append("deviceType" , getDeviceType())
                .append("devicePhysicalLocation" , getDevicePhysicalLocation())
                .append("deviceDetails" , getDeviceDetails())
                .append("createTime" , getCreateTime())
                .append("createPerson" , getCreatePerson())
                .append("updateTime" , getUpdateTime())
                .append("updatePerson" , getUpdatePerson())
                .append("isDeleted" , getIsDeleted())
                .append("isModify" , getIsModify())
                .toString();
    }
}
